<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>3dchess: S:/dev/3dchess/src/core/Logging.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">3dchess
   </div>
   <div id="projectbrief">Basic chess application with OpenGL graphics and AI</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_aebb8dcc11953d78e620bbef0b9e2183.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Logging.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;ostream&gt;</code><br/>
<code>#include &lt;string&gt;</code><br/>
<code>#include &lt;boost/optional/optional.hpp&gt;</code><br/>
<code>#include &lt;boost/log/sources/severity_channel_logger.hpp&gt;</code><br/>
<code>#include &lt;boost/log/sources/record_ostream.hpp&gt;</code><br/>
<code>#include &lt;boost/log/sources/severity_feature.hpp&gt;</code><br/>
</div>
<p><a href="_logging_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespace_logging"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_logging.html">Logging</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a840df805afd4834079588711162aaf1c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_logging_8h.html#a840df805afd4834079588711162aaf1c">LOG</a>(sev)&#160;&#160;&#160;BOOST_LOG_SEV(m_log, sev)</td></tr>
<tr class="separator:a840df805afd4834079588711162aaf1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8e8aaacd6fe3dc2e820adbb46de00df"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_logging_8h.html#af8e8aaacd6fe3dc2e820adbb46de00df">GLOG</a>(sev)&#160;&#160;&#160;BOOST_LOG_SEV(log, sev)</td></tr>
<tr class="separator:af8e8aaacd6fe3dc2e820adbb46de00df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:af78477448b54bc1471cfcaed50de11cc"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_logging.html#af78477448b54bc1471cfcaed50de11cc">Logging::Logger</a> = boost::log::sources::severity_channel_logger_mt&lt; Severity, std::string &gt;</td></tr>
<tr class="memdesc:af78477448b54bc1471cfcaed50de11cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Typedef for custom severity + channel logger.  <a href="#af78477448b54bc1471cfcaed50de11cc">More...</a><br/></td></tr>
<tr class="separator:af78477448b54bc1471cfcaed50de11cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a33fd43ffdd62981b5c3d2e94eb7c1210"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_logging.html#a33fd43ffdd62981b5c3d2e94eb7c1210">Logging::Severity</a> { <br/>
&#160;&#160;<a class="el" href="namespace_logging.html#a33fd43ffdd62981b5c3d2e94eb7c1210a65848aca67db0361c37c9e2431a9495a">Logging::trace</a>, 
<a class="el" href="namespace_logging.html#a33fd43ffdd62981b5c3d2e94eb7c1210a3e0930ddd5f775c603db6bd89f8b1b57">Logging::debug</a>, 
<a class="el" href="namespace_logging.html#a33fd43ffdd62981b5c3d2e94eb7c1210a90ffdce6eecc02ffecd67a995dba7faa">Logging::info</a>, 
<a class="el" href="namespace_logging.html#a33fd43ffdd62981b5c3d2e94eb7c1210aa9abee4c593dd6e8320402e6433b3369">Logging::warning</a>, 
<br/>
&#160;&#160;<a class="el" href="namespace_logging.html#a33fd43ffdd62981b5c3d2e94eb7c1210aceeb027b8c598adb9e3af1696a163aea">Logging::error</a>, 
<a class="el" href="namespace_logging.html#a33fd43ffdd62981b5c3d2e94eb7c1210a3027a6eaf95c5a493d6d825e748096ef">Logging::fatal</a>
<br/>
 }</td></tr>
<tr class="memdesc:a33fd43ffdd62981b5c3d2e94eb7c1210"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="namespace_logging.html">Logging</a> severity levels.  <a href="namespace_logging.html#a33fd43ffdd62981b5c3d2e94eb7c1210">More...</a><br/></td></tr>
<tr class="separator:a33fd43ffdd62981b5c3d2e94eb7c1210"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a77014ddd8c1f1919baec5713c48184e1"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_logging.html#a77014ddd8c1f1919baec5713c48184e1">Logging::operator&lt;&lt;</a> (std::ostream &amp;stream, const Severity severity)</td></tr>
<tr class="separator:a77014ddd8c1f1919baec5713c48184e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac45267d2af642fa9f4ca86621cc43ddc"><td class="memItemLeft" align="right" valign="top">boost::optional&lt; Severity &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_logging.html#ac45267d2af642fa9f4ca86621cc43ddc">Logging::severityFrom</a> (const std::string &amp;severity)</td></tr>
<tr class="separator:ac45267d2af642fa9f4ca86621cc43ddc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5a0375328b713d8c33f14f7e06b9a64"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_logging.html#aa5a0375328b713d8c33f14f7e06b9a64">Logging::initializeLogging</a> ()</td></tr>
<tr class="memdesc:aa5a0375328b713d8c33f14f7e06b9a64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Basic initialization for logging.  <a href="#aa5a0375328b713d8c33f14f7e06b9a64">More...</a><br/></td></tr>
<tr class="separator:aa5a0375328b713d8c33f14f7e06b9a64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace3f8dd8d87f96cdd3488af0285b5235"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_logging.html#ace3f8dd8d87f96cdd3488af0285b5235">Logging::addLoggingConsoleSink</a> (Severity minimalSeverity=info, const std::string &amp;formatString=&quot;%TimeStamp% | %Severity% @ &lt;%Channel%&gt;: %Message%&quot;)</td></tr>
<tr class="memdesc:ace3f8dd8d87f96cdd3488af0285b5235"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a sink for logging to clog.  <a href="#ace3f8dd8d87f96cdd3488af0285b5235">More...</a><br/></td></tr>
<tr class="separator:ace3f8dd8d87f96cdd3488af0285b5235"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef4b4c692b9bf12bd653ed4be6a964bf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_logging.html#aef4b4c692b9bf12bd653ed4be6a964bf">Logging::addLoggingFileSink</a> (const std::string &amp;fileName, Severity minimalSeverity=info, const std::string &amp;formatString=&quot;%TimeStamp% | %Severity% @ &lt;%Channel%&gt;: %Message%&quot;)</td></tr>
<tr class="memdesc:aef4b4c692b9bf12bd653ed4be6a964bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a sink for logging to a file.  <a href="#aef4b4c692b9bf12bd653ed4be6a964bf">More...</a><br/></td></tr>
<tr class="separator:aef4b4c692b9bf12bd653ed4be6a964bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff7a241ba5fd200ff84cc47940101cb2"><td class="memItemLeft" align="right" valign="top">Logger&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_logging.html#aff7a241ba5fd200ff84cc47940101cb2">Logging::initLogger</a> (const std::string &amp;channel)</td></tr>
<tr class="separator:aff7a241ba5fd200ff84cc47940101cb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="af8e8aaacd6fe3dc2e820adbb46de00df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GLOG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sev</td><td>)</td>
          <td>&#160;&#160;&#160;BOOST_LOG_SEV(log, sev)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a840df805afd4834079588711162aaf1c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">sev</td><td>)</td>
          <td>&#160;&#160;&#160;BOOST_LOG_SEV(m_log, sev)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Dec 27 2013 16:40:12 for 3dchess by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
